package com.junjun.ssm.entity;

import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Setter
@Getter

@Table(name = "news_index")
@Entity

public class NewsEntity {
    @Id

    @Column(name = "news_id")
    private String newsId;

    @Column(name = "news_title", length = 48, nullable = false)
    private String title;


    @Column(name = "news_author")
    private String author;


    @Column(name = "news_time")
    private String newsTime;

    public NewsEntity() {

    }


}
